package snsdbook.engine.message;

import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

import snsdbook.engine.FileManager;

public interface MessageInterface extends Serializable {
  /**
   * Process this message, received as a server.
   */
  public String ProcessAsServer(ObjectInputStream is, ObjectOutputStream os);
  
  /**
   * Process this message, received as a client.
   */
  public String ProcessAsClient(ObjectInputStream is, ObjectOutputStream os,
                                FileManager manager);
  
  @Override
  public String toString();
}
